package com.yujistu.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import com.yujistu.R;

/**
 * Created by S3YOGA on 2015/11/7.
 */
public class GroupDetailAdapter extends BaseListAdapter {


    public GroupDetailAdapter(Context context) {
        super(context);
    }

    @Override
    public int getCount() {
        return 10;
    }

    @Override
    protected View getRealView(int position, View convertView, ViewGroup viewGroup) {
        ViewHolder  holder = null;
        if(convertView == null){
            holder = new ViewHolder(convertView);
            convertView = mInflater.inflate(R.layout.view_list_detail_item, null);
            convertView.setTag(holder);
        }else{
            holder = (ViewHolder) convertView.getTag();
        }

        return convertView;
    }

    public class ViewHolder extends BaseViewHolder{

        public ViewHolder(View view) {
            super(view);
        }
    }
}
